\hypertarget{class_i_event_listener}{\section{I\-Event\-Listener Class Reference}
\label{class_i_event_listener}\index{I\-Event\-Listener@{I\-Event\-Listener}}
}


Holds the On\-Event function.  




{\ttfamily \#include $<$I\-Event\-Listener.\-h$>$}

Inheritance diagram for I\-Event\-Listener\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_i_event_listener}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_i_event_listener_a4d6ddb3ba50a87727aed9d530fe7d200}{I\-Event\-Listener} ()
\item 
virtual \hyperlink{class_i_event_listener_a81170264da18c0e9d62c7ca9c3dc57af}{$\sim$\-I\-Event\-Listener} ()
\item 
virtual void \hyperlink{class_i_event_listener_a40210b0cc287ec611c2e05eebb8964aa}{On\-Event} (\hyperlink{struct_i_event}{I\-Event} $\ast$e\-Event)=0
\begin{DoxyCompactList}\small\item\em Called by the event manager. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{class_i_event_listener_a646584657e48f3ee78d7389f97cf8ebd}{id}
\begin{DoxyCompactList}\small\item\em The id of a listener instance. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static int \hyperlink{class_i_event_listener_a0c128e3ba3d9510a57966480a47b2780}{num\-Instances} = 0
\begin{DoxyCompactList}\small\item\em Used to distribute ids of listeners. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Holds the On\-Event function. 

All classes that want to register for events must inherit from this and implement the On\-Event function. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_i_event_listener_a4d6ddb3ba50a87727aed9d530fe7d200}{\index{I\-Event\-Listener@{I\-Event\-Listener}!I\-Event\-Listener@{I\-Event\-Listener}}
\index{I\-Event\-Listener@{I\-Event\-Listener}!IEventListener@{I\-Event\-Listener}}
\subsubsection[{I\-Event\-Listener}]{\setlength{\rightskip}{0pt plus 5cm}I\-Event\-Listener\-::\-I\-Event\-Listener (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{class_i_event_listener_a4d6ddb3ba50a87727aed9d530fe7d200}
\hypertarget{class_i_event_listener_a81170264da18c0e9d62c7ca9c3dc57af}{\index{I\-Event\-Listener@{I\-Event\-Listener}!$\sim$\-I\-Event\-Listener@{$\sim$\-I\-Event\-Listener}}
\index{$\sim$\-I\-Event\-Listener@{$\sim$\-I\-Event\-Listener}!IEventListener@{I\-Event\-Listener}}
\subsubsection[{$\sim$\-I\-Event\-Listener}]{\setlength{\rightskip}{0pt plus 5cm}virtual I\-Event\-Listener\-::$\sim$\-I\-Event\-Listener (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_i_event_listener_a81170264da18c0e9d62c7ca9c3dc57af}


\subsection{Member Function Documentation}
\hypertarget{class_i_event_listener_a40210b0cc287ec611c2e05eebb8964aa}{\index{I\-Event\-Listener@{I\-Event\-Listener}!On\-Event@{On\-Event}}
\index{On\-Event@{On\-Event}!IEventListener@{I\-Event\-Listener}}
\subsubsection[{On\-Event}]{\setlength{\rightskip}{0pt plus 5cm}virtual void I\-Event\-Listener\-::\-On\-Event (
\begin{DoxyParamCaption}
\item[{{\bf I\-Event} $\ast$}]{e\-Event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}}\label{class_i_event_listener_a40210b0cc287ec611c2e05eebb8964aa}


Called by the event manager. 


\begin{DoxyParams}{Parameters}
{\em e\-Event} & Passed by the event manager. \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See Also}
\hyperlink{struct_i_event}{I\-Event} 
\end{DoxySeeAlso}


Implemented in \hyperlink{classpg_pale_gem_framework_a4aebbb9cf4100c5344d762660b3a91e2}{pg\-Pale\-Gem\-Framework}, and \hyperlink{classpg_render_a5e4b502439a7ba3b9bb6644260e61d69}{pg\-Render}.



\subsection{Member Data Documentation}
\hypertarget{class_i_event_listener_a646584657e48f3ee78d7389f97cf8ebd}{\index{I\-Event\-Listener@{I\-Event\-Listener}!id@{id}}
\index{id@{id}!IEventListener@{I\-Event\-Listener}}
\subsubsection[{id}]{\setlength{\rightskip}{0pt plus 5cm}int I\-Event\-Listener\-::id}}\label{class_i_event_listener_a646584657e48f3ee78d7389f97cf8ebd}


The id of a listener instance. 

\hypertarget{class_i_event_listener_a0c128e3ba3d9510a57966480a47b2780}{\index{I\-Event\-Listener@{I\-Event\-Listener}!num\-Instances@{num\-Instances}}
\index{num\-Instances@{num\-Instances}!IEventListener@{I\-Event\-Listener}}
\subsubsection[{num\-Instances}]{\setlength{\rightskip}{0pt plus 5cm}int I\-Event\-Listener\-::num\-Instances = 0\hspace{0.3cm}{\ttfamily [static]}}}\label{class_i_event_listener_a0c128e3ba3d9510a57966480a47b2780}


Used to distribute ids of listeners. 



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Inc/\hyperlink{_i_event_listener_8h}{I\-Event\-Listener.\-h}\item 
Source/\hyperlink{pg_event_manager_8cpp}{pg\-Event\-Manager.\-cpp}\end{DoxyCompactItemize}
